package com.danco.training.bookshop.comparator;

import java.io.Serializable;
import java.util.Comparator;

import com.danco.training.bookshop.entity.Claim;

public class ClaimComparatorByAlphabet implements Comparator<Claim>,Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4203612362374012410L;

	public int compare(Claim o1, Claim o2) {
		String c1 = o1.getBook().getTitle();
		String c2 = o2.getBook().getTitle();

		return c1.compareTo(c2);
	}

}
